package com.suray.basic.wcs.plc.utils;

import lombok.Data;

/**
 * 提升机任务
 */
@Data
public class LifterTask {
    /**
     * can be null
     * wcs任务Id
     */
    private Integer taskId;

    /**
     * 任务类型
     */
    private LifterTaskType taskType;

    /**
     * 任务起点
     */
    private int start;

    /**
     * 任务终点
     */
    private int end;

    public LifterTask(Integer wcsTaskId, LifterTaskType taskType, int start, int end) {
        this.taskId = wcsTaskId;
        this.taskType = taskType;
        this.start = start;
        this.end = end;
    }

    public LifterTask(Integer wcsTaskId) {
        this.taskId = wcsTaskId;
    }
}
